<template>
    <div class="fans-list">
        <ul>
            <template v-for="">
                <li :key="section">
                    <div class="item-media">
                        <img src="~@/assets/img/myLogin.png" width="60">
                    </div>
                    <div class="item-inner">
                        <div class="title">
                            用户名称
                        </div>
                        <div class="sudtitle">
                            梵蒂冈哈根科技股份卡就
                        </div>
                    </div>
                    <div class="fansbtn">
                      关注
                    </div>
                </li>
             </template>
        </ul>
    </div>
</template>
<script>
import {mapMutations} from 'vuex'
export default {
  props: {
    itemJson: {
      default: ''
    },
    visible: {
      type: Boolean,
      default: false
    },
    checkBoxMethod: Function
  },
  methods: {
    ...mapMutations('detail', [
      'set_listArticle'
    ]),
    url(item) {
      if (item.article) {
        console.log(item.article)
        return `/detail?id=${item.article.article_id}`
      }
      if (item.video) {
          console.log(item.video)
        return `/detail?id=${item.video.video_id}`
      }
      if (item.images) {
          console.log(item.images)
        return `/detail?id=${item.images.images_id}`
      }
      if (item.video_id) {
          return `/detail?id=${item.video_id}`
      }
    },
    saveData(json) {
      this.set_listArticle(json)
    }
  }
}
</script>
<style scoped lang='stylus'>
.fans-list {
    ul{
        li{
            box-sizing: border-box;
            display: -webkit-box;
            display: -webkit-flex;
            display: flex;
            padding : 10px;
            -webkit-box-pack: justify;
            -webkit-justify-content: space-between;
            justify-content: space-between;
            -webkit-box-align: center;
            -webkit-align-items: center;
            align-items: center;
            background : #fff;
            position: relative ;
            .item-media{
                display: -webkit-box;
                display: -webkit-flex;
                display: flex;
                -webkit-flex-shrink: 0;
                -ms-flex: 0 0 auto;
                -webkit-flex-shrink: 0;
                flex-shrink: 0;
                -webkit-box-lines: single;
                -moz-box-lines: single;
                -webkit-flex-wrap: nowrap;
                flex-wrap: nowrap;
                box-sizing: border-box;
                -webkit-box-align: center;
                -webkit-align-items: center;
                align-items: center;
            }
            .item-inner{
                position: relative;
                width: 75%;
                padding-top: 2px;
                padding-left : 10px;
                overflow: hidden;
                box-sizing: border-box;
                display: -webkit-box;
                display: -webkit-flex;
                display: flex;
                -webkit-box-flex: 1;
                -ms-flex: 1;
                -webkit-box-pack: justify;
                -webkit-justify-content: space-between;
                justify-content: space-between;
                -webkit-box-align: center;
                -webkit-align-items: center;
                align-items: center;
                display: block;
                -webkit-align-self: stretch;
                align-self: stretch;
                .title{
                    padding: 5px 0;
                    font-size: 16px;
                }
                .sudtitle{
                    color : #9e9e9e;
                    font-size: 14px;
                }
            }
            .fansbtn {
              font-size: 14px;
              width: 50px;
              text-align: center;
              background: #f34e4e;
              color: #fff;
              padding: 4px 5px;
              border-radius: 4px;

            }
        }
        li:after {
            content: '';
            position: absolute;
            left: 0;
            bottom: 0;
            right: auto;
            top: auto;
            height: 1px;
            width: 100%;
            background-color: #e7e7e7;
            display: block;
            z-index: 15;
            -webkit-transform-origin: 50% 100%;
            transform-origin: 50% 100%;
        }
    }
}
</style>
<style>

</style>
